/* 特定于 bot.vue 的样式 */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* 占满整个视口高度 */
  overflow: hidden;
}

.navigation {
  display: flex;
  justify-content: space-around;
  background-color: #f8f8f8;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  z-index: 1000; /* 确保导航栏在最上方 */
}

.nav-item {
  padding: 10px;
  margin: 0 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #e0e0e0;
  }
}

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.knowledge-graph {
  width: 50%;
  border-right: 1px solid #ddd;
  overflow: auto;
  padding: 10px;
}

.chat-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
}

.chat-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.chat-bubble {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  word-wrap: break-word;

  &.user {
    background-color: #e0e0e0;
    align-self: flex-end;
  }

  &.bot {
    background-color: #f9f9f9;
    align-self: flex-start;
  }
}

.input-area {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.function-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.input-wrapper {
  display: flex;
  align-items: center;
}

input {
  flex: 1;
  padding: 15px;
  height: 60px; /* 增加高度 */
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  margin-right: 5px;
  font-size: 16px; /* 增加字体大小 */
  width: calc(100% - 100px); /* 确保输入框宽度合适 */
}

button {
  padding: 10px 20px;
  height: 60px; /* 与输入框高度一致 */
  background-color: #07c160;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #05a651;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .knowledge-graph, .chat-container {
    width: 100%;
  }

  .chat-container {
    flex: 1;
  }

  .function-buttons {
    flex-wrap: wrap; /* 允许按钮换行 */
  }

  .function-buttons button {
    flex: 1; /* 按钮等宽 */
    margin: 5px;
  }
}